package main.kotlin.solution

import java.util.*

class MajorityElement {

    fun main(){
        majorityElement(intArrayOf(1,2,3,2,2,2,5,4,2))
    }

    private fun majorityElement(nums: IntArray): Int {
        var array = IntArray(nums.size)
        var stack = Stack<Int>()
        stack.push(1)
        stack.push(2)
        stack.push(3)
        stack.push(4)
        stack.empty()
        println(stack.peek())
        stack.pop()
        stack.push(5)
        stack.pop()
        println(stack.peek())
        return 0
    }
}